import request from "@/utils/request";

// 老旧危房报警器安装数量/报警数量
export const getHousingSafetyOldBuildingAlarm = (params: any) => {
    return request({
        url: "/screen/housingSafety/oldBuildingAlarm",
        method: "post",
        data: params,
    });
};

// 在册危险房屋分布
export const getHousingSafetyDangerousBuildings = (params: any) => {
    return request({
        url: "/screen/housingSafety/dangerousBuildings",
        method: "post",
        data: params,
    });
};

// 设备情况列表-table
export const getHousingSafetyDeviceList = (params: any) => {
    return request({
        url: "/screen/housingSafety/deviceList",
        method: "post",
        data: params,
    });
};

// 报警原因分析-pie
export const getHousingSafetyAlarmReasonAnalysis = (params: any) => {
    return request({
        url: "/screen/housingSafety/alarmReasonAnalysis",
        method: "post",
        data: params,
    });
};

// 安装报警分析图-line
export const getHousingSafetyGenerateAlarmChart = (params: any) => {
    return request({
        url: "/screen/housingSafety/generateAlarmChart",
        method: "post",
        data: params,
    });
};

// 报警数量统计-line
export const getHousingSafetyAlarmCount = (params: any) => {
    return request({
        url: "/screen/housingSafety/alarmCount",
        method: "post",
        data: params,
    });
};